package com.stack.knowyouservice.service;

/**
 * 邮件发送服务接口
 *
 * @author stack
 */
public interface EmailSendService {

    /**
     * 发送注册验证码
     *
     * @param mailTarget 目标邮箱
     * @return 验证码
     * @throws Exception 验证码发送出错
     */
    String sendRegisterCaptCha(String mailTarget) throws Exception;

    /**
     * 发送忘记密码验证码
     *
     * @param username 用户名
     * @return 验证码
     * @throws Exception 验证码发送出错
     */
    String sendForgetCaptCha(String username) throws Exception;

}
